Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(datastore): Return nested data for belongsTo associations in datastore #1390

Merged

Conversation

Jordan-Nelson
Copy link
Member

@Jordan-Nelson Jordan-Nelson commented Jun 25, 2021

Issue #, if available: aws-amplify/amplify-flutter#642

Description of changes:

  • update the creation of serialized models to recursively create nested serialized models with the queried data

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Jordan-Nelson Jordan-Nelson marked this pull request as ready for review June 30, 2021 18:44
@Jordan-Nelson Jordan-Nelson requested a review from a team June 30, 2021 18:44
Copy link
Contributor

@richardmcclellan richardmcclellan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, these changes LGTM! We just need to get the tests passing now. Currently the build is failing due to these checkstyle issues:

> Task :aws-datastore:checkstyle
--
800 | [ant:checkstyle] [ERROR] /codebuild/output/src659932793/src/github.com/aws-amplify/amplify-android/aws-datastore/src/main/java/com/amplifyframework/datastore/storage/sqlite/SQLiteStorageAdapter.java:817: First sentence of Javadoc is missing an ending period. [SummaryJavadoc]
801 | [ant:checkstyle] [ERROR] /codebuild/output/src659932793/src/github.com/aws-amplify/amplify-android/aws-datastore/src/main/java/com/amplifyframework/datastore/storage/sqlite/SQLiteStorageAdapter.java:817: First sentence should end with a period. [JavadocStyle]
802 | [ant:checkstyle] [ERROR] /codebuild/output/src659932793/src/github.com/aws-amplify/amplify-android/aws-datastore/src/main/java/com/amplifyframework/datastore/storage/sqlite/SQLiteStorageAdapter.java:829: Line is longer than 120 characters (found 126). [LineLength]
803 | [ant:checkstyle] [ERROR] /codebuild/output/src659932793/src/github.com/aws-amplify/amplify-android/aws-datastore/src/main/java/com/amplifyframework/datastore/storage/sqlite/SQLiteStorageAdapter.java:831: Line is longer than 120 characters (found 129). [LineLength]
804 |  
805 | > Task :aws-datastore:checkstyle FAILED

Copy link
Contributor

@richardmcclellan richardmcclellan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @Jordan-Nelson, thanks for adding this support!

@richardmcclellan richardmcclellan merged commit 0aaa84c into aws-amplify:main Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants